package cn.ctvonline.android.kaopu.constant;

import java.util.ArrayList;
import java.util.List;

import cn.ctvonline.android.kaopu.entity.ExpandEntry;

/**
 * Created by dujian on 15/12/1.
 */
public final class Constant {
    public static final String BUGLY_APP_ID = "900013245";
    public static List<ExpandEntry> expandList;

    public static void initExpand() {
        if (expandList == null) {
            expandList = new ArrayList<>();
            ExpandEntry typeExpandOne = new ExpandEntry();
            typeExpandOne.setValue("全部");
            expandList.add(typeExpandOne);
            for (int i = 2; i < 15; i++) {
                ExpandEntry typeExpand = new ExpandEntry();
                typeExpand.setValue("精品美食" + i);
                if (i % 3 != 0) {
                    ExpandEntry childEntrty0 = new ExpandEntry();
                    childEntrty0.setValue("全部");
                    ExpandEntry childEntrty1 = new ExpandEntry();
                    childEntrty1.setValue("川菜" + i);
                    ExpandEntry childEntrty2 = new ExpandEntry();
                    childEntrty2.setValue("湘菜" + i);
                    ExpandEntry childEntrty3 = new ExpandEntry();
                    childEntrty3.setValue("东北菜" + i);
                    ExpandEntry childEntrty4 = new ExpandEntry();
                    childEntrty4.setValue("鲁菜" + i);
                    ExpandEntry childEntrty5 = new ExpandEntry();
                    childEntrty5.setValue("粤菜" + i);
                    List<ExpandEntry> listTwo = new ArrayList<>();
                    listTwo.add(childEntrty0);
                    listTwo.add(childEntrty1);
                    listTwo.add(childEntrty2);
                    listTwo.add(childEntrty3);
                    listTwo.add(childEntrty4);
                    listTwo.add(childEntrty5);
                    typeExpand.setMoreList(listTwo);
                }
                expandList.add(typeExpand);
            }
        }
    }
}
